<%--
  Created by IntelliJ IDEA.
  User: Song
  Date: 15-12-24
  Time: 下午3:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户详细信息</title>
    <script>
        function backToUserList() {
            window.location.href = "/back/user_info/list/1";
        }
    </script>
</head>
<body>
<div>
    <form:form commandName="myHouseDTOs">
        <table class="table table-striped">
            <thead>
            <tr>
                <th>房屋类型</th>
                <th>房屋名称</th>
                <th>周次</th>
                <th>价格</th>
                <th>所在市</th>
                <th>购买数量</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${myHouseDTOs}" var="myHouseDTO">
                <tr>
                    <td>${myHouseDTO.houseInfoDTO.title}</td>
                    <td>${myHouseDTO.houseInfoDTO.name}</td>
                    <td>${myHouseDTO.houseWeekDTO.name}</td>
                    <td>${myHouseDTO.houseWeekDTO.price}</td>
                    <td>${myHouseDTO.houseWeekDTO.houseBaseArea}</td>
                    <td>${myHouseDTO.buyNum}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </form:form>
    <br>
    <input type="button" id="backList" onclick="backToUserList()" class="btn btn-info" value="返回列表"/>
</div>
</body>
</html>